package com.ysd.mapper;

import com.ysd.entity.Verification;

public interface VerificationMapper {
	/**
	 * 通过邮箱获取用户重置密码的验证码
	 * 
	 * @param email
	 * @return
	 */
	Verification getUserPasswordCode(String email);

	/**
	 * 添加用户找回密码的验证码
	 * 
	 * @param verification
	 * @return
	 */
	int insertResetPasswordCode(Verification verification);
	
	/**
	 * 根据邮箱验证码查询
	 * @param verification
	 * @return
	 */
	Verification selectEmail(Verification verification);
	
	/**
	 * 根据邮箱验证码修改状态
	 * @param verification
	 * @return
	 */
	int updateSta(Verification verification);
}
